'use strict'

//添加
module.exports.insert = function(req, res, next){
	res.send('ok');
};
//查看全部
module.exports.findAll = function(req, res, next){
//	res.send('index');
	res.render('index', { title: 'Express'
						,users:[{username:'111'},
								{username:'222'},
								{username:'333'}]
   });
};
//根据id查找
module.exports.getById = function(req, res, next){
	res.status(500).render('index', { title: 'error'
						,users:[{username:'111'},
								{username:'222'},
								{username:'333'}]
   });
};
//删除
module.exports.remove = function(req, res, next){
	res.send('ok');
};
//修改
module.exports.update = function(req, res, next){
	res.send('ok');
};